package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.PointsRecord;
import com.nbsaas.boot.marketing.api.domain.simple.PointsRecordSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 积分记录-列表对象转换器
*/

public class PointsRecordSimpleConvert implements Converter<PointsRecordSimple, PointsRecord> {




@Override
public PointsRecordSimple convert(PointsRecord source) {
    PointsRecordSimple result = new PointsRecordSimple();

                result.setBalance(source.getBalance());
                result.setOrderId(source.getOrderId());
                result.setDescription(source.getDescription());
                result.setId(source.getId());
                result.setRuleId(source.getRuleId());
                result.setType(source.getType());
                result.setUserId(source.getUserId());
                result.setAddDate(source.getAddDate());
                result.setPoints(source.getPoints());
                result.setLastDate(source.getLastDate());


    return result;
}

}